import fetchApi from "@/utils/request"
export default {
    //游戏设置

    //红包雨----------------------------------------------------------------
    //获取配置
    getHbyConfig(aid) {
        return fetchApi(`/api/v1/admin/activities/${aid}/hongbao`, "GET", {})
    },
    //更新配置
    updateHbyConfig(aid, params) {
        return fetchApi(`/api/v1/admin/activities/${aid}/hongbao`, "PUT", params)
    },
    //摇一摇----------------------------------------------------------------
    //获取配置
    getYyyConfig(aid) {
        return fetchApi(`/api/v1/admin/activities/${aid}/shake`, "GET", {})
    },
    //更新配置
    updateYyyConfig(aid, params) {
        return fetchApi(`/api/v1/admin/activities/${aid}/shake`, "PUT", params)
    },
    //划一划----------------------------------------------------------------
    //获取配置
    getHyhConfig(aid) {
        return fetchApi(`/api/v1/admin/draw/${aid}`, "GET", {})
    },
    //更新配置
    updateHyhConfig(aid, params) {
        return fetchApi(`/api/v1/admin/draw/${aid}`, "PUT", params)
    },
    //幸运夺宝----------------------------------------------------------------
    //获取配置
    getXydbConfig(aid) {
        return fetchApi(`/api/v1/admin/lucky-wheel/${aid}`, "GET", {})
    },
    //更新配置
    updateXydbConfig(aid, params) {
        return fetchApi(`/api/v1/admin/lucky-wheel/${aid}`, "PUT", params)
    },
    //抽奖----------------------------------------------------------------
    //获取奖项
    getLotteryPrize(aid) {
        return fetchApi(`/api/v1/admin/lottery/${aid}/awards`, "GET", {})
    },
    //添加奖项
    addLotteryPrize(aid, params) {
        return fetchApi(`/api/v1/admin/lucky-wheel/${aid}`, "POST", params)
    },
    //更新奖项
    updateLotteryPrize(aid, id, params) {
        return fetchApi(`/api/v1/admin/lottery/${aid}/awards/${id}`, "PUT", params)
    },
    //删除奖项
    deleteLotteryPrize(aid, id) {
        return fetchApi(`/api/v1/admin/lottery/${aid}/awards/${id}`, "DELETE", {})
    },
    //获取自定义用户
    getLotteryCustomUser(aid) {
        return fetchApi(`/api/v1/admin/lottery/${aid}/custom-users`, "GET", {})
    },
    //添加自定义用户
    addLotteryCustomUser(aid, params) {
        return fetchApi(`/api/v1/admin/lottery/${aid}/custom-users`, "POST", params)
    },
    //修改自定义用户
    updateLotteryCustomUser(aid, id, params) {
        return fetchApi(`/api/v1/admin/lottery/${aid}/custom-users/${id}`, "POST", params)
    },
    //删除自定义用户
    deleteLotteryCustomUser(aid, id) {
        return fetchApi(`/api/v1/admin/lottery/${aid}/custom-users/${id}`, "DELETE", {})
    },
    //获取签到用户列表
    getLotterySignUser(aid) {
        return fetchApi(`/api/v1/admin/lottery/${aid}/users`, "GET", {})
    },
    //获取签到用户列表
    getLotterySysSignUser() {
        return fetchApi("/admin/game_lottery/get_winner", "GET", {})
    },
    //添加签到用户列表
    addLotterySysSignUser(aid, params) {
        return fetchApi(`/api/v1/admin/lottery/${aid}/winners`, "POST", params)
    },
    //添加签到用户列表
    deleteLotterySysSignUser(aid, id) {
        return fetchApi(`/api/v1/admin/lottery/${aid}/winners/${id}`, "DELETE", {})
    }
}
